package com.tencent.iov.cowin.befsale.clue.value.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Describe: 提交状态类型
 * @author: whp
 * @created: 2021-12-01 18:22:10
 * @version: 1.0
 */
@Getter
@AllArgsConstructor
public enum CustomerTypeEnum {

    //客户类型 0总部客户 1经销商客户
    CUSTOMER_TYPE_OEM(0,"总部客户"),
    CUSTOMER_TYPE_DEALER(1,"经销商客户");

    Integer code;
    String name;

    public static Boolean isDealer(Integer code) {
        return CUSTOMER_TYPE_DEALER.getCode().equals(code);
    }

    public static Boolean isOem(Integer code) {
        return CUSTOMER_TYPE_OEM.getCode().equals(code);
    }
}
